// 设置环境变量并启动服务器
process.env.JWT_SECRET = 'endo_sight_uc_jwt_secret_key_2024_secure_token_generation_minimum_32_chars';
process.env.DB_HOST = 'localhost';
process.env.DB_PORT = '3306';
process.env.DB_USER = 'root';
process.env.DB_PASSWORD = '';
process.env.DB_NAME = 'endo_sight_uc';
process.env.PORT = '4000';
process.env.NODE_ENV = 'development';
process.env.UPLOAD_PATH = './uploads';
process.env.MAX_FILE_SIZE = '15728640';
process.env.RATE_LIMIT_WINDOW_MS = '60000';
process.env.RATE_LIMIT_MAX_REQUESTS = '100';
process.env.CORS_ORIGIN = 'http://localhost:8101';

console.log('🔧 环境变量已设置，启动服务器...');

// 启动主服务器
import('./src/index.js');
